﻿using corpus_platform.Data;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Data;

namespace corpus_platform.ViewModels.Converter
{
    class BindingTreeNodeType2Color : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            BindingTreeNodeType type = (BindingTreeNodeType)value;
            switch(type)
            {
                case BindingTreeNodeType.root:
                    return "Gray";
                case BindingTreeNodeType.framework:
                    return "Red";
                case BindingTreeNodeType.frameElement:
                    return "Gray";
                case BindingTreeNodeType.frameworkInstance:
                    return "Green";
                case BindingTreeNodeType.ontology:
                    return "Gray";
                default:
                    return "Gray";
            }
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
